/**
 * Coryright 2015-2020 www.eyaomall.cn
 * All rights reserved.
 * @author tumingjun
 * @date 2016年8月10日
 *
 */

package com.eyaomall.wxmanage.dao;

import org.springframework.stereotype.Repository;

import com.eyaomall.wxmanage.model.po.ShopExt;
import com.eyaomall.wxmanage.model.vo.ShopExtVO;
import com.lycheeframework.core.annotation.NameSpace;
import com.lycheeframework.core.support.DaoSupport;

/**
 * @author tumingjun
 *
 */
@Repository
@NameSpace("shop_ext")
public class ShopExtDao extends DaoSupport<ShopExt>{
	
	/**
	 * 更新
	 * @param shopExt
	 * @return
	 */
	public boolean openChild(ShopExtVO shopExtVO){
		
		return super.update("changeChild",shopExtVO) > 0 ? true : false;
	}
	
	/**
	 * 增加代理数
	 * @param shopExt
	 * @return
	 */
	public boolean addChild(ShopExtVO shopExtVO){
		
		return super.update("changeChild",shopExtVO) > 0 ? true : false;
	}
}
